<template>
  <div>
    <div class="sort-title">字母分类</div>

    <ul class="sort-list">
      <li class="sort-item" v-for="(item,key) of sortName" :key="key.id">{{ key }}</li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'CitySort',
  props: {
    sortName: Array
  }
}
</script>

<style lang="stylus" scoped>
  @import '~styles/publicStyle.styl'
  @import '~styles/mixins.styl'
  .sort-title
    font-size .24rem
    line-height .8rem
    padding 0 .3rem
  .sort-list
    position relative
    color #212121
    overflow hidden
    background white
    padding .3rem 0
    .sort-item
      width 16.6%
      height .9rem
      line-height .9rem
      text-align center
      float left
      ellipsis()
</style>
